package net.peelmeagrape.hibernate;

import net.peelmeagrape.hibernate.xmlgen.XmlAttribute;
import net.peelmeagrape.hibernate.xmlgen.XmlElement;

import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Map class names to values used for {@link Any} and
 * {@link net.peelmeagrape.hibernate.collections.ManyToAny} mappings.
 */
@Retention(RUNTIME)
@XmlElement(name="meta-value")
public @interface MetaValue
{
    @XmlAttribute String value();
    @XmlAttribute("class") String theclass();
}
